```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NodeJS 安装指南 | 技术小馆</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        .hero {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        }
        .code-block {
            background-color: #1e293b;
            color: #e2e8f0;
            border-radius: 0.5rem;
            position: relative;
        }
        .code-copy {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s;
        }
        .code-copy:hover {
            color: #e2e8f0;
        }
        .step-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .step-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .mermaid {
            background-color: white;
            border-radius: 0.5rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero text-white py-20 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="flex flex-col items-center text-center">
                <h1 class="text-4xl md:text-5xl font-bold mb-6 font-serif">NodeJS 安装与配置指南</h1>
                <p class="text-xl max-w-3xl mb-8 opacity-90">从下载到配置，一站式解决 NodeJS 环境搭建问题</p>
                <div class="flex space-x-4">
                    <a href="#steps" class="px-6 py-3 bg-white text-indigo-600 font-medium rounded-full hover:bg-opacity-90 transition">开始学习</a>
                    <a href="http://nodejs.cn/download/" target="_blank" class="px-6 py-3 border border-white text-white font-medium rounded-full hover:bg-white hover:bg-opacity-10 transition">访问 NodeJS 官网</a>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto max-w-6xl py-12 px-4">
        <!-- Flow Chart -->
        <section class="mb-16">
            <h2 class="text-2xl font-bold mb-6 text-gray-800 font-serif border-l-4 border-indigo-500 pl-4">安装流程图示</h2>
            <div class="mermaid">
                flowchart TD
                    A[找到对应版本NodeJS包] --> B[下载NodeJS文件]
                    B --> C[解压并重命名]
                    C --> D[建立软连接]
                    D --> E[运行测试]
                    E --> F[安装CNPM]
                    F --> G[完成安装]
            </div>
        </section>

        <!-- Steps Section -->
        <section id="steps">
            <!-- Step 1 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">1</div>
                            <h3 class="text-xl font-bold text-gray-800">找到对应版本NodeJS包</h3>
                        </div>
                        <p class="text-gray-600 mb-4">访问 NodeJS 中文官网下载适合的版本，选择稳定版本以获得最佳兼容性。</p>
                        <div class="flex flex-wrap gap-4 mb-4">
                            <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1677123785599-a1c945bc-1138-446d-a9c7-e11b0472df34.png" alt="NodeJS下载页面" class="rounded-lg shadow-sm w-full md:w-auto md:max-w-xs">
                            <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1677123804788-99ed23c3-3c6c-422b-b440-0fdc045db7fc.png" alt="NodeJS版本选择" class="rounded-lg shadow-sm w-full md:w-auto md:max-w-xs">
                        </div>
                        <a href="http://nodejs.cn/download/" target="_blank" class="inline-flex items-center text-indigo-600 hover:text-indigo-800 font-medium">
                            访问 NodeJS 中文网 <i class="fas fa-external-link-alt ml-1 text-sm"></i>
                        </a>
                    </div>
                </div>
            </div>

            <!-- Step 2 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">2</div>
                            <h3 class="text-xl font-bold text-gray-800">下载NodeJS文件</h3>
                        </div>
                        <p class="text-gray-600 mb-4">使用 wget 命令下载指定版本的 NodeJS 安装包到开发工具目录。</p>
                        <div class="code-block p-4 mb-4">
                            <button class="code-copy" title="复制代码"><i class="far fa-copy"></i></button>
                            <pre><code class="text-sm">cd /usr/local/dev-tools/
wget https://registry.npmmirror.com/-/binary/node/latest-v10.x/node-v10.24.1-linux-x64.tar.gz</code></pre>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Step 3 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">3</div>
                            <h3 class="text-xl font-bold text-gray-800">解压并重命名</h3>
                        </div>
                        <p class="text-gray-600 mb-4">解压下载的压缩包并将其重命名为更简单的目录名，便于后续使用。</p>
                        <div class="code-block p-4 mb-4">
                            <button class="code-copy" title="复制代码"><i class="far fa-copy"></i></button>
                            <pre><code class="text-sm">tar -zxf node-v10.24.1-linux-x64.tar.gz
mv node-v10.24.1-linux-x64 ./nodejs</code></pre>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Step 4 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">4</div>
                            <h3 class="text-xl font-bold text-gray-800">建立软连接</h3>
                        </div>
                        <p class="text-gray-600 mb-4">通过创建软连接的方式使 NodeJS 相关命令可以在全局使用，无需修改系统环境变量。</p>
                        <div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-4">
                            <div class="flex">
                                <div class="flex-shrink-0 text-yellow-500">
                                    <i class="fas fa-info-circle"></i>
                                </div>
                                <div class="ml-3">
                                    <p class="text-sm text-yellow-700">
                                        我们解压到了指定目录，但无法全局执行。可以设置环境变量，但需要修改 /etc/profile 文件。更简便的方式是创建软连接到已存在环境变量的路径中。
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="code-block p-4 mb-4">
                            <button class="code-copy" title="复制代码"><i class="far fa-copy"></i></button>
                            <pre><code class="text-sm">ln -s /usr/local/dev-tools/nodejs/bin/node /usr/bin
ln -s /usr/local/dev-tools/nodejs/bin/npm /usr/bin
ln -s /usr/local/dev-tools/nodejs/bin/npx /usr/bin
npm install -g pnpm
ln -s /usr/local/dev-tools/nodejs/bin/pnpm /usr/bin
ln -s /usr/local/dev-tools/nodejs/bin/pnpx /usr/bin
npm install -g yarn
ln -s /usr/local/dev-tools/nodejs/bin/yarn /usr/bin
ln -s /usr/local/dev-tools/nodejs/bin/yarnpkg /usr/bin</code></pre>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Step 5 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">5</div>
                            <h3 class="text-xl font-bold text-gray-800">运行测试</h3>
                        </div>
                        <p class="text-gray-600 mb-4">验证 NodeJS 和 npm 是否安装成功。</p>
                        <div class="code-block p-4 mb-4">
                            <button class="code-copy" title="复制代码"><i class="far fa-copy"></i></button>
                            <pre><code class="text-sm">npm -v
node -v</code></pre>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Step 6 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">6</div>
                            <h3 class="text-xl font-bold text-gray-800">安装CNPM</h3>
                        </div>
                        <p class="text-gray-600 mb-4">安装淘宝 NPM 镜像，加快国内下载速度。</p>
                        <div class="code-block p-4 mb-4">
                            <button class="code-copy" title="复制代码"><i class="far fa-copy"></i></button>
                            <pre><code class="text-sm"># 安装cpnm插件
npm install -g cnpm --registry=https://registry.npm.taobao.org

# 建立软连接
ln -s /usr/local/dev-tools/nodejs/bin/cnpm /usr/bin</code></pre>
                        </div>
                        <div class="flex justify-center">
                            <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1677125040870-6ac63d59-0f1f-410d-9ab0-b426dc6af7ae.png" alt="测试结果" class="rounded-lg shadow-sm max-w-full">
                        </div>
                    </div>
                </div>
            </div>

            <!-- Step 7 -->
            <div class="step-card bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="md:flex">
                    <div class="md:flex-1 p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex items-center justify-center w-10 h-10 rounded-full bg-indigo-100 text-indigo-600 font-bold mr-4">7</div>
                            <h3 class="text-xl font-bold text-gray-800">node_modules 位置</h3>
                        </div>
                        <p class="text-gray-600 mb-4">了解全局安装包的存储位置。</p>
                        <div class="flex justify-center">
                            <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1677125171702-83a6b34b-607b-4059-8531-92afe28b14bc.png" alt="node_modules位置" class="rounded-lg shadow-sm max-w-full">
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Summary Section -->
        <section class="bg-indigo-50 rounded-xl p-8 mb-12">
            <div class="text-center max-w-3xl mx-auto">
                <h2 class="text-2xl font-bold mb-4 text-indigo-800 font-serif">安装完成！</h2>
                <p class="text-gray-700 mb-6">恭喜！您已成功安装并配置了 NodeJS 环境。现在可以开始开发 NodeJS 应用了。</p>
                <div class="flex justify-center space-x-4">
                    <a href="https://nodejs.org/en/docs/" target="_blank" class="px-6 py-3 bg-indigo-600 text-white font-medium rounded-full hover:bg-indigo-700 transition">
                        <i class="fas fa-book mr-2"></i> 查看官方文档
                    </a>
                    <a href="https://github.com/nodejs/node" target="_blank" class="px-6 py-3 border border-indigo-600 text-indigo-600 font-medium rounded-full hover:bg-indigo-50 transition">
                        <i class="fab fa-github mr-2"></i> GitHub 仓库
                    </a>
                </div>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-8">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-bold text-white mb-2">技术小馆</h3>
                    <p class="text-gray-400">专业技术知识分享平台</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" target="_blank" class="text-gray-300 hover:text-white transition flex items-center">
                        <i class="fas fa-external-link-alt mr-2"></i> 访问技术小馆
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
                &copy; 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            fontFamily: 'Noto Sans SC, sans-serif'
        });

        // Copy code functionality
        document.querySelectorAll('.code-copy').forEach(button => {
            button.addEventListener('click', () => {
                const codeBlock = button.parentElement.querySelector('code');
                const range = document.createRange();
                range.selectNode(codeBlock);
                window.getSelection().removeAllRanges();
                window.getSelection().addRange(range);
                document.execCommand('copy');
                window.getSelection().removeAllRanges();
                
                // Show copied feedback
                const originalIcon = button.innerHTML;
                button.innerHTML = '<i class="fas fa-check"></i>';
                button.style.color = '#10b981';
                setTimeout(() => {
                    button.innerHTML = originalIcon;
                    button.style.color = '';
                }, 2000);
            });
        });

        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```